import { dirUpload, fileUpolod, dropUpload,uploadTool } from "./upload.js";

let filebtn = document.getElementById('btn1');


filebtn.addEventListener('click', () => {
    fileUpolod();
    console.log(uploadTool.getResFiles(),'file1')
});

let dirbtn = document.getElementById('btn2');
dirbtn.addEventListener('click', dirUpload)

// 获取dom元素
let droptarget = document.getElementById("drop")
//拖拽事件绑定
droptarget.addEventListener("dragenter", dropUpload)
droptarget.addEventListener("dragover", dropUpload);
droptarget.addEventListener("drop", dropUpload);
droptarget.addEventListener("dragleave", dropUpload);


